<template>
  <footer class="footer">
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <h3 class="footer-title">Wu-Lazy-Cloud-Network</h3>
          <p class="footer-description">
            基于 Spring Boot 3.5.0 和 JDK 24 开发的高性能网络穿透和代理工具，
            支持 TCP、HTTP、SOCKS 协议，提供完整的内网穿透、网络代理、流量监控等功能。
          </p>
          <div class="footer-social">
            <a href="https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network" target="_blank" class="social-link">
              <el-icon><Platform /></el-icon>
            </a>
            <a href="https://github.com/wujiawei1207537021/wu-lazy-cloud-network" target="_blank" class="social-link">
              <el-icon><Platform /></el-icon>
            </a>
            <a href="mailto:1207537021@qq.com" class="social-link">
              <el-icon><Message /></el-icon>
            </a>
          </div>
        </div>
        
        <div class="footer-section">
          <h4 class="footer-subtitle">功能特性</h4>
          <ul class="footer-links">
            <li><router-link to="/features#penetration">内网穿透</router-link></li>
            <li><router-link to="/features#proxy">网络代理</router-link></li>
            <li><router-link to="/features#monitor">流量监控</router-link></li>
            <li><router-link to="/features#route">路由管理</router-link></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h4 class="footer-subtitle">技术文档</h4>
          <ul class="footer-links">
            <li><router-link to="/docs">使用文档</router-link></li>
            <li><router-link to="/architecture">系统架构</router-link></li>
            <li><router-link to="/download">下载安装</router-link></li>
            <li><a href="https://gitee.com/wujiawei1207537021/wu-framework-parent" target="_blank">Lazy ORM</a></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h4 class="footer-subtitle">技术支持</h4>
          <ul class="footer-links">
            <li><a href="https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network/issues" target="_blank">问题反馈</a></li>
            <li><a href="https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network/pulls" target="_blank">贡献代码</a></li>
            <li><a href="mailto:1207537021@qq.com">联系我们</a></li>
            <li><router-link to="/about">关于我们</router-link></li>
          </ul>
        </div>
      </div>
      
      <div class="footer-bottom">
        <div class="footer-copyright">
          <p>&copy; 2024 Wu-Lazy-Cloud-Network. All rights reserved.</p>
          <p>由 <a href="mailto:1207537021@qq.com">吴佳伟</a> 开发和维护</p>
        </div>
        <div class="footer-license">
          <p>基于 <a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License 2.0</a> 开源协议</p>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup>
import { Platform, Message } from '@element-plus/icons-vue'
</script>

<style lang="scss" scoped>
.footer {
  background: var(--background-light);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-section {
  .footer-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
  }
  
  .footer-description {
    color: var(--text-regular);
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .footer-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
  }
}

.footer-social {
  display: flex;
  gap: 12px;
  
  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: white;
    color: var(--text-regular);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    
    &:hover {
      color: var(--primary-color);
      border-color: var(--primary-color);
      transform: translateY(-2px);
    }
    
    .el-icon {
      font-size: 18px;
    }
  }
}

.footer-links {
  list-style: none;
  
  li {
    margin-bottom: 8px;
    
    a {
      color: var(--text-regular);
      text-decoration: none;
      transition: color 0.3s ease;
      
      &:hover {
        color: var(--primary-color);
      }
    }
  }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  
  @media (max-width: 768px) {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    
    a {
      color: var(--primary-color);
      text-decoration: none;
      
      &:hover {
        text-decoration: underline;
      }
    }
  }
}
</style> 